package com.android.functionmanagement.location;

import android.content.Context;

public class LocationManager {
	
	private Context mContext;
	
	public LocationManager(Context context) {
		mContext = context;
	}
	
	public LocationMode getInstance(int type){
		return LocationFactory.createLocation(type);
	}
	
	public void getLocation(LocationMode locationMode,LocationCompleteLister completeLister){
		if(locationMode!=null && completeLister!=null){
			locationMode.init(mContext);
			locationMode.setLocationCompleteLister(completeLister);
		}
	}
}
